import { get } from '../get'

// 作业井统计查询（src\page\dataAnalysis\workWellAnalysis\index.vue）
export const GetWorkWellData = (filterOptions) => {
  return get.get(`/dataAnalysis/getWorkWellByCondition`, {
    params: filterOptions
  })
}
// 材料附件消耗统计查询（src\page\dataAnalysis\materialConsumptionAnalysis\index.vue）
export const GetConsumptionByConditionData = (filterOptions) => {
  return get.get(`/dataAnalysis/getConsumptionByCondition`, {
    params: filterOptions
  })
}

// 作业公司
export const GetWorkCompany = () => {
  return get.get(`/workbase/company`)
}
// 某作业公司下的 全部区域
export const GetAreaData = (company) => {
  return get.get(`dataAnalysis/getAreaByCompany?cementCompany=${company}`)
}
// 某区域下的 全部区块
export const GetBlockData = (company, area) => {
  return get.get(`dataAnalysis/getBlockByArea?cementCompany=${company}&area=${area}`)
}
// 某区块下的 全部油田
export const GetOilField = (company, area, block) => {
  return get.get(`dataAnalysis/getOilfieldByAreaAndBlock?cementCompany=${company}&area=${area}&block=${block}`)
}
// 井型
export const GetWellType = () => {
  return get.get(`/sysmanage/WellType`)
}
// 井别
export const GetWellSpacing = () => {
  return get.get(`/sysmanage/WellSpacing`)
}
// 套管尺寸
export const GetCaseSize = () => {
  return get.get(`/sysmanage/CaseSize`)
}